/***************************************************************************************************
 * 搜索项配置：
 * alias 挂载搜索接口对应字段
 * name 现在的搜索项提示
 * type 搜索项控件类型select（选择器）、input（输入框）、datetime（日期选择）、dialog（外部弹框）、tree（树形选择器）
 ***************************************************************************************************/

/**
 * 搜索 选择器配置
 */
export const INDEX_SEARCH_SELECT_OPTIONS_CONFIG = {
  status: [
    
    //状态(查询条件)
    {'value': '0', 'label': '待审核'},
    {'value': '1', 'label': '已审核'}
  ],


}
/**
 * 搜索配置
 * @type {Array}
 */
export const INDEX_SEARCH_CONFIG = [

  {alias: 'materialName', name: '请输入产品名称', type: 'input'},
  // {alias: 'materialName', name: '请输入商家名称', type: 'input'},
  {alias: 'status', name: '请选择审核状态', type: 'select'},

]

/***
 * 搜索结果 操作列配置
 * @type {Array}
 */
const ACTION_SEARCH_OPTIONS = [
  {alias: 'audit', name: '审核', type: 'text'},
]

const CPSX_ACTION_SEARCH_OPTIONS = [
  {alias: 'edit', name: '编辑', type: 'primary'},
  {alias: 'del', name: '删除', type: 'danger'}
]


/***
 * 搜索结果列配置
 * @type {Array}
 */
export const NCP_INDEX_SEARCH_RESULT_ITEMS = [
  {alias: 'materialId', name: '产品编号', width: '120px'},
  {alias: 'materialName', name: '产品名称', width: '120px'},
  {alias: 'createMan', name: '所属商家', width: '120px'},
  {alias: 'bassName', name: '所属基地', width: '120px'},
  {alias: 'typeName', name: '分类', width: '110px' },
  {alias: 'price', name: '价格', width: '110px'},
  {alias: 'inventory', name: '库存', width: '150px'},
  {alias: 'remark', name: '审核状态', width: '150px'},
  // {alias: 'approveTime', name: '审核时间', width: '150px'},
  // {alias: 'remark', name: '审核原因', width: '150px'},
  {name: '操作', width: '100px', type: 'action', options: ACTION_SEARCH_OPTIONS}
]


export const NZ_INDEX_SEARCH_RESULT_ITEMS = [
  {alias: 'materialId', name: '产品编号', width: '120px'},
  {alias: 'materialName', name: '产品名称', width: '120px'},
  {alias: 'createMan', name: '所属商家', width: '120px'},
  {alias: 'typeName', name: '分类', width: '110px' },
  {alias: 'price', name: '价格', width: '110px'},
  {alias: 'inventory', name: '库存', width: '150px'},
  {alias: 'remark', name: '审核状态', width: '150px'},
  // {alias: 'approveTime', name: '审核时间', width: '150px'},
  // {alias: 'remark', name: '审核原因', width: '150px'},
  {name: '操作', width: '100px', type: 'action', options: ACTION_SEARCH_OPTIONS}
]

/***
 * 规格设置 列配置
 * @type {Array}
 */
export const GGSET_RESULT_ITEMS = [
  {alias: 'standName', name: '规格名称', width: '120px'},
  {alias: 'standValue', name: '规格值', width: '120px'},
  {alias: 'price', name: '价格', width: '110px'},
  {alias: 'num', name: '库存', width: '150px'},
  {name: '操作', width: '100px', type: 'action', options: CPSX_ACTION_SEARCH_OPTIONS}
]


/***
 * 参数设置 列配置
 * @type {Array}
 */
export const CCSET_RESULT_ITEMS = [
  {alias: 'paramName', name: '参数名称', width: '120px'},
  {alias: 'paramValue', name: '参数值', width: '120px'},

  {name: '操作', width: '100px', type: 'action', options: CPSX_ACTION_SEARCH_OPTIONS}
]



